Skip to content

Added module-related functions to JIT #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 16, 2017
Merged

Added module-related functions to JIT #38

merged 3 commits into from
Jan 16, 2017

Conversation

harlanhaskins
Copy link
Member

No description provided.

/// the appropriate `@convention(c)` function type to be
/// able to run it from Swift.
///
/// typealias FnPtr = @convention(c) () -> Double
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code voice plz.

/// typealias FnPtr = @convention(c) () -> Double
/// let fnAddr = jit.addressOfFunction(name: "test")
/// let fn = unsafeBitCast(fnAddr, to: FnPtr.self)
public func addressOfFunction(name: String) -> OpaquePointer? {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Document the return type

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by document it, other than what's there?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- returns:

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's there! 😅

@harlanhaskins harlanhaskins merged commit 17cabc6 into master Jan 16, 2017
@harlanhaskins harlanhaskins deleted the modularity branch January 16, 2017 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants